import request from '@/common/request'

//员工列表
export function getTeacherList(data) {
  return request({
    url: '/apikanke/teacher/list',
    data: data,
    method: 'post',
  })
}
//员工详情
export function getTeacherDetail(data) {
  return request({
    url: '/apikanke/teacher/detail',
    data: data,
    method: 'post',
  })
}
//添加、编辑员工
export function edit(data) {
  return request({
    url: '/apikanke/teacher/edit',
    data: data,
    method: 'post',
  })
}
//分配班级
export function allocate(data) {
  return request({
    url: '/apikanke/teacher/allocate',
    data: data,
    method: 'post',
  })
}
//重置密码
export function resetPass(data) {
  return request({
    url: '/apikanke/teacher/resetPass',
    data: data,
    method: 'post',
  })
}

//删除
export function del(data) {
  return request({
    url: '/apikanke/teacher/del',
    data: data,
    method: 'post',
  })
}

//员工详情
export function getTeacherData(data) {
  return request({
    url: '/apikanke/teacher/getTeacherData',
    data: data,
    method: 'post',
  })
}

//获取权限列表
export function getRoleList(data) {
  return request({
    url: '/apikanke/teacher/getRoleList',
    data: data,
    method: 'post',
  })
}
